package zhao.yao.chen.backend.basic.framework.lock4j.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import zhao.yao.chen.backend.basic.framework.lock4j.core.DefaultLockFailureStrategy;

//@AutoConfiguration(before = LockAutoConfiguration.class)
@Configuration
@ConditionalOnClass(name = "com.baomidou.lock.annotation.Lock4j")
public class YudaoLock4jConfiguration {

    @Bean
    public DefaultLockFailureStrategy lockFailureStrategy() {
        return new DefaultLockFailureStrategy();
    }

}
